package com.shujia.wyh.day06.homework.test8;

public class SportMan extends Person {
    //运动项目，历史最好成绩
    private String sportEvent;
    private String score;

    public SportMan() {
    }

    public SportMan(String name, int age, String gender, String sportEvent, String score) {
        super(name, age, gender);
        this.sportEvent = sportEvent;
        this.score = score;
    }

    public String getSportEvent() {
        return sportEvent;
    }

    public void setSportEvent(String sportEvent) {
        this.sportEvent = sportEvent;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    @Override
    public void show() {
        System.out.println("大家好！我是" + getName());
        System.out.println("今年" + getAge());
        System.out.println("我擅长的运动项目是：" + getSportEvent());
        System.out.println("历史最好成绩是:" + getScore());
    }
}
